import request from '@/utils/request'

export const loginApi = (data) => request.post('/sys/login', data)

export const getuserInfoApi = () => request.get('/sys/profile')

export const updatePasswordApi = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}

export const getUserDetailById = (id) => request.get(`/sys/user/${id}`)
